package com.imcoke.abchat.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author ccoke
 * @Description
 * @Date: 16:15 2017-11-01
 */
@Component
@Data
public class AppProperties {

    public static final String EMAIL = "email";
    public static final String USERNAME = "username";
    public static final String KEYTIME = "created";

    @Value("${jwt.header}")
    private String jwt_header;

    @Value("${jwt.tokenHead}")
    private String jwt_tokenHead;

    @Value("${jwt.secret}")
    private String secret;

    @Value("${jwt.expiration_mail}")
    private Long expiration_mail;

    @Value("${jwt.expiration_login}")
    private Long expiration_login;

    // 文件主目录
    @Value("${com.imcoke.abchat.file_path}")
    private String file_path;
    //图片存储路径
    @Value("${com.imcoke.abchat.image_path}")
    private String image_path;

    //视频存储路径
    @Value("${com.imcoke.abchat.video_path}")
    private String video_path;

    // url
    @Value("${com.imcoke.abchat.url}")
    private String url;

    // port
    @Value("${server.port}")
    private String port;

    @Value("${spring.mail.username}")
    private String email;


}
